var http = require('http');
var querystring = require('querystring');

var contents = querystring.stringify({
	username: 'test01',
	password: 'passwd',
	repassword: 'passwd',
	email: '123456789@qq.com'
});

var options = {
	host: 'www.sikuka.com',
	path: '/rege',
	method: 'post',
	headers: {
		'Content-Type':'application/x-www-form-urlencoded',
		'Content-Type':'contents.length'
	}
};

var req = http.request(options ,function (res) {
	res.setEncoding('utf8');
	res.on('data',function (data) {
		console.log(data);
	})
	res.on('error', function(error){
		console.log(error);
		console.log("请求失败");
	});
});

req.write(contents);
req.end();